/*
 * @Author: Dufen~123 dufen.0
 * @Date: 2024-12-25 15:42:48
 * @LastEditors: Dufen~123 dufen.0
 * @LastEditTime: 2024-12-25 15:43:08
 * @FilePath: \my-app\src\pages\ParentComponent\index.js
 * @Description:chuan
 * */
import React from 'react';
import ChildComponent from './components/ChildComponent';

const ParentComponent = () => {
  const name = "张三";
  const age = 30;

  return (
    <div>
      <h1>父组件向子组件----传递参数</h1>
      <ChildComponent name={name} age={age} />
    </div>
  );
};

export default ParentComponent;
